package com.zhu.edu.service.impl;

import com.zhu.edu.entity.Permission;
import com.zhu.edu.mapper.PermissionMapper;
import com.zhu.edu.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zjc
 * @since 2021-12-21
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {
    @Autowired
    PermissionMapper permissionMapper;
    @Override
    public Set<String> getPermissionsByUsername(String username) {

        return permissionMapper.selectPermissionsByUsername(username);
    }
}
